﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ContentList.aspx.cs" Inherits="ContentList" %>

<%@ Register Src="UserControls/Notice.ascx" TagName="Notice" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="sidebar">
        <% if (ChildParts != null || ChildParts.Rows.Count != 0)
           { %>
        <div class="leftmodel1Container">
            <div class="leftmodel1">
                <%--    <marquee scrollAmount=2 direction="up" height="80px" onmouseover=this.stop() onmouseout=this.start()>
            <asp:Repeater ID="rpNotice" runat="server">
                <ItemTemplate>
                      <li>
                      <a href='Content.aspx?articleID=<%#Eval("ID")%>&TypeCode=<%#Eval("TypeCode") %>'  target="_blank">
                      <%#CutString(Eval("Title").ToString())%></a>
                      </li>
                </ItemTemplate>
                </asp:Repeater>
                           <div style="width:180px; text-align:right;">
        <a style="text-align:right;  height:35px;" href="ContentType.aspx?type=WZGG" target="_blank">>>更多</a>
        </div>
             </marquee> --%>
                <ul>
                    <%for (int i = 0; i < ChildParts.Rows.Count; ++i)
                      {
                          string URL = "ContentList.aspx?type=" + ChildParts.Rows[i]["TypeCode"].ToString();
                          string TypeName = ChildParts.Rows[i]["TypeName"].ToString();

                          if (ThisType == ChildParts.Rows[i]["TypeCode"].ToString())
                          {
                    %>
                    <li><a style="font-weight: bold; display: block;" href="<%=URL%>">
                        <%=TypeName%></a></li>
                    <%
                        }
                          else
                          {
                    %>
                    <li><a style="display: block;" href="<%=URL%>">
                        <%=TypeName%></a> </li>
                    <%}
                      }%>
                </ul>
            </div>
        </div>
        <%} %>
        <div class="leftmodel2Container">
            <div class="leftmodel2">
                <ul>
                    <asp:Repeater ID="rpTopList" runat="server">
                        <ItemTemplate>
                            <li><a href='Content.aspx?articleID=<%#Eval("ID")%>&TypeCode=<%#Eval("TypeCode") %>' target="_blank">
                                <%#CutString(Eval("Title").ToString())%></a> </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
        </div>
    </div>
    <div id="rightcontent">
        <div class="rightNav" id="dvNav" runat="server">
            当前位置：<a href="Default.aspx">中共重庆市沙坪坝区委统一战线工作部</a>&nbsp;>>&nbsp;</div>
        <asp:Panel ID="Panel1" runat="server">
            <div class="model">
                <div class="ltTitle">
                    <asp:Literal ID="ltType" runat="server"></asp:Literal></div>
                <div>
                    <ul>
                        <asp:Repeater ID="rpList" runat="server">
                            <ItemTemplate>
                                <li><a href='Content.aspx?articleID=<%#Eval("ID")%>&TypeCode=<%#Eval("TypeCode") %>' target="_blank">
                                    <%#Eval("Title")%></a></li></ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div style="text-align: center; padding-top: 10px;" id="dvbtn" runat="server">
                    第&nbsp;<asp:Label ID="lbCurPage" runat="server" Text="Label"></asp:Label>&nbsp;页
                    <asp:Button Text="前一页" ID="btnPreviousPage" runat="server" OnClick="btnPreviousPage_Click" />
                    <asp:Button Text="后一页" ID="btnNextPage" runat="server" OnClick="btnNextPage_Click" />
                </div>
                <div id="dvEmpty" runat="server" style="padding-top: 10px;">
                </div>
            </div>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server">
            <asp:Panel ID="Panel3" runat="server">
                <p class="ltTitle">
                    <asp:Literal ID="ltTitle" runat="server"></asp:Literal></p>
                <div class="line">
                </div>
                <div class="date">
                    <b>发布时间: &nbsp;</b><asp:Literal ID="ltCreateTime" runat="server"></asp:Literal>
                    &nbsp;&nbsp;&nbsp;<b>点击率:&nbsp;</b><asp:Literal ID="ltViewTimes" runat="server"></asp:Literal>
                </div>
                <br />
                <div id="div_Content" class="textcontent" runat="server">
                    <asp:Literal ID="ltArticle" runat="server"></asp:Literal>
                </div>
                <div class="textfooter">
                    <a href="javascript:window.print()">打印本页</a>&nbsp;</div>
            </asp:Panel>
            <asp:Panel ID="Panel4" runat="server">
                <asp:Label ID="labErr" runat="server" Text="Label"></asp:Label></asp:Panel>
        </asp:Panel>
    </div>
</asp:Content>
